<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:tools="http://schemas.android.com/tools"
    android:background="?colorSecondary">

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar"
        style="@style/toolbarTitle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toTopOf="parent"
        app:navigationIcon="@drawable/back_button"
        app:title="@string/filter_settings">

    </androidx.appcompat.widget.Toolbar>

    <include
        android:id="@+id/llWorkPlace"
        layout="@layout/filter_categoty_element"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:minHeight="@dimen/filter_element_height"
        android:layout_marginTop="@dimen/dimen_16dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/toolbar" />

    <include
        android:id="@+id/llIndustries"
        layout="@layout/filter_categoty_element"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:minHeight="@dimen/filter_element_height"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/llWorkPlace" />


    <LinearLayout
        android:id="@+id/llSalary"
        android:layout_width="match_parent"
        android:layout_height="51dp"
        android:layout_marginHorizontal="16dp"
        android:layout_marginTop="24dp"
        android:background="@drawable/background_corners12"
        android:backgroundTint="@color/LightGrayDay_GrayNight"
        android:orientation="horizontal"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/llIndustries">

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_weight="1"
            android:orientation="vertical"
            android:paddingStart="16dp"
            android:paddingTop="6dp"
            android:paddingEnd="4dp"
            android:paddingBottom="6dp">

            <TextView
                android:id="@+id/tvSalaryHint"
                style="@style/SmallTextStyle"

                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/expected_salary"
                android:enabled="false"
                android:textColor="@color/salary_hint" />

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/tietSalary"
                style="@style/StandartTextStyle"
                android:inputType="numberDecimal"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/LightGrayDay_GrayNight"
                android:singleLine="true"
                android:textColor="@color/BlackUniversal_yp"
                android:textColorHint="@color/GrayDay_WhiteNight"
                android:focusable="true"
                tools:text="123"
                android:textCursorDrawable="@drawable/cursor_edit_text"
                android:hint="@string/input_expected_salary" />


        </LinearLayout>

        <ImageButton
            android:id="@+id/ibClear"
            android:layout_width="@dimen/big_size"
            android:layout_height="@dimen/big_size"
            android:layout_marginTop="0.5dp"
            android:backgroundTint="@color/LightGrayDay_GrayNight"
            android:src="@drawable/ic_clear"
            android:visibility="gone" />
    </LinearLayout>

    <CheckBox
        android:id="@+id/cbOnlyWithSalary"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginTop="24dp"
        android:layout_marginEnd="12dp"
        android:checked="false"
        android:button="@null"
        android:drawableEnd="@drawable/checkbox_selector"
        android:text="@string/filter_only_with_salary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/llSalary" />

    <Button
        android:id="@+id/btnCancel"
        style="@style/StandartButton"
        android:layout_width="match_parent"
        android:layout_height="59dp"
        android:clickable="true"
        android:text="@string/clear_filter"
        android:visibility="gone"
        tools:visibility="visible"
        app:layout_constraintBottom_toBottomOf="parent" />

    <Button
        android:id="@+id/btnAccept"
        style="@style/StandartButton"
        android:visibility="gone"
        tools:visibility="visible"
        android:layout_width="match_parent"
        android:layout_height="59dp"
        android:layout_weight="0"
        android:text="@string/accept"
        app:layout_constraintBottom_toTopOf="@id/btnCancel" />


</androidx.constraintlayout.widget.ConstraintLayout>
